package com.hksj.Intelligentmanagement.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * @author chenxingqing
 */
@Data
@TableName("b_user_region")
@ApiModel
public class UserRegion extends Model<UserRegion> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "护士/麻醉人员id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "区域id")
    @TableField("region_id")
    private String regionId;

    @ApiModelProperty(value = "人员类型  1 = 护士  2 = 麻醉")
    @TableField("type")
    private Integer type;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
